package com.lzy.gulimall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.lzy.gulimall.member.dao")
@SpringBootApplication
@EnableDiscoveryClient  //开启服务注册
/**
 * 调用远程服务步骤
 *  1、引入open-feign
 *  2、编写接口，告诉springcloud接口需要调用的远程服务（声明式）
 *  3、开启远程调用功能
 */
@EnableFeignClients(basePackages = "com.lzy.gulimall.member.feign")
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
